<!-- INCLUDE ucp_header.html -->

<!-- IF S_ATTACHMENT_ROWS -->

	<!-- IF TOTAL_ATTACHMENTS -->
<hr />
<table cellspacing="0">
	<tr>
		<td align="center"><span class="nav">{PAGE_NUMBER}</span>
		<p class="genmed">[ {TOTAL_ATTACHMENTS} {L_TOTAL_ATTACHMENTS} ]</p>
		<!-- INCLUDE pagination.html --></td>
	</tr>
</table>
	<!-- ELSE -->
<hr />
<br />
	<!-- ENDIF -->

<hr />
<table cellspacing="0">
	<tr>
		<th>{L_ATTACHMENTS}</th>
	</tr>
</table>

	<!-- BEGIN attachrow -->
<hr />
<table cellspacing="0">
	<tr>
		<td class="row2">&nbsp;#{attachrow.ROW_NUMBER}&nbsp;<a class="gen" href="{attachrow.U_VIEW_ATTACHMENT}">{attachrow.FILENAME}</a></td>
	</tr>
</table>

<hr />
<table cellspacing="0">
	<tr>
		<td class="row1">{L_SELECT} <input type="checkbox" class="radio" name="attachment[{attachrow.ATTACH_ID}]" value="1" />
		<p class="genmed"><!-- IF attachrow.S_IN_MESSAGE --><b>{L_PM}: </b><!-- ELSE --><b>{L_TOPIC}: </b><!-- ENDIF --><a href="{attachrow.U_VIEW_TOPIC}">{attachrow.TOPIC_TITLE}</a></p>
		<p class="genmed">{attachrow.POST_TIME}</p>
		<p class="genmed">{L_FILESIZE}: {attachrow.SIZE}</p>
		<p class="genmed">{L_DOWNLOADS}: {attachrow.DOWNLOAD_COUNT}</p>
		</td>
	</tr>
</table>

<!-- IF not attachrow.S_LAST_ROW -->
<hr />
<table cellspacing="0">
	<tr>
		<td class="spacer"></td>
	</tr>
</table>
<!-- ENDIF -->

	<!-- END attachrow -->
<hr />
<table cellspacing="0">
	<tr> 
		<td><div style="float: center;"><span class="gensmall">{L_SORT_BY}: </span><select name="sk">{S_SORT_OPTIONS}</select> <select name="sd">{S_ORDER_SELECT}</select>&nbsp;<input class="btnlite" type="submit" name="sort" value="{L_SORT}" /></div><div style="float: center;"><input class="btnlite" type="submit" name="delete" value="{L_DELETE_MARKED}" />&nbsp;</div>

	<div style="float: {S_CONTENT_FLOW_END};"><b class="gensmall"><a href="#" onclick="marklist('ucp', 'attachment', true); return false;">{L_MARK_ALL}</a> :: <a href="#" onclick="marklist('ucp', 'attachment', false); return false;">{L_UNMARK_ALL}</a></b></div>

</td>
	</tr>
</table>

<!-- ELSE -->

<hr />
<table cellspacing="0">
	<tr>
		<th>{L_TITLE}</th>
	</tr>
</table>

<hr />
<table cellspacing="0">
	<tr class="row2">
		<td align="center"><b class="genmed">{L_UCP_NO_ATTACHMENTS}</b></td>
	</tr>
</table>

<!-- ENDIF -->

<!-- INCLUDE ucp_footer.html -->